package ycl.schedule.res;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import ycl.common.constants.BaseConstant;
import ycl.common.models.BaseEntityRes;

import java.time.LocalDateTime;

/**
 * <p>
 * 日程词库返回体
 * </p>
 *
 * @author ycl
 * @since 2022-06-23 20:21:11
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("schedule_thesaurus")
@ApiModel(value = "ScheduleThesaurus对象", description = "日程词库返回体")
public class ScheduleThesaurusRes extends BaseEntityRes {

	private static final long serialVersionUID = 1L;

	@Schema(description = " 词名")
	private String name;

	@Schema(description = "用户id，-1为全局用户共用，其他为私有")
	private Long userId;

	@Schema(description = "词库类型")
	private String type;

	@Schema(description = "创建时间")
	@JsonFormat(pattern = BaseConstant.DATE_TIME_PATTERN, timezone = BaseConstant.DATE_TIME_GMT8)
	private LocalDateTime createTime;

	@Schema(description = "状态，1正常，0禁用")
	private Boolean status;


}
